package controllers_admin

import (
	"github.com/kataras/iris/mvc"
)

type IndexController struct {
}

func (c *IndexController) BeforeActivation(b mvc.BeforeActivation) {
	// httpMethod 参数一定要全大写
	b.Handle("GET", "/", "Index")
}

func (c *IndexController) Index() mvc.Result {
	return mvc.View{
		Name: "index.html",
	}
}
